package service;

import com.github.pagehelper.PageInfo;
import entity.CourseType;
import exception.ServiceException;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface CourseTypeService {
    List<CourseType> findAllCourseType() throws ServiceException;

    PageInfo<CourseType> findAllCourseType(HttpServletRequest request);

    PageInfo<CourseType> findBackCourseType(HttpServletRequest request);

    int addBackType(HttpServletRequest request);

    String toggleStatus(HttpServletRequest request);

    CourseType showBackName(String id);

    String modifyBackName(String id, String typeName);

    List<CourseType> findCourseType() throws ServiceException;

    List<CourseType> findsecondType(Integer parent_id) throws ServiceException;
}
